package com.yang.designmode.ActionMode.state;

public class Client {
    public static void main(String[] args) {
        Context context = new Context(new ConcreteStateA());

        context.request(); // 输出 "当前状态为 A，执行操作..."，切换为 B
        context.request(); // 输出 "当前状态为 B，执行操作..."，切换为 A
    }
}
